package com.sleep.psy.external_server.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class Result<T> {

    @ApiModelProperty
    private Integer code;
    @ApiModelProperty
    private String msg;
    @ApiModelProperty
    private T data;

    public Result() {
        super();
    }

    public Result(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
